<?php


namespace Xiaoguai\DesignPattern\DP001\CacheFactory;


use Xiaoguai\DesignPattern\DP001\CacheFactory;
use Xiaoguai\DesignPattern\Main\Base\CacheDriver\RedisCache;
use Xiaoguai\DesignPattern\Main\Base\CacheInterface;

class RedisCacheFactory implements CacheFactory
{

    public static function createCache(): CacheInterface
    {
        return new RedisCache();
    }
}